package com.yunshang.shoppingmall.service;

import com.yunshang.shoppingmall.entity.Privilege;

import java.util.List;

public interface PrivilegeService  {

    int deleteByPrimaryKey(Integer priId);
    //增加权限
    int insert(Privilege privilege);

    int insertSelective(Privilege record);

    Privilege selectByPrimaryKey(Integer priId);

    int updateByPrimaryKeySelective(Privilege record);

    int updateByPrimaryKeyWithBLOBs(Privilege record);

    int updateByPrimaryKey(Privilege record);

    //根据用户ID删除权限
    int delPrivilegeByUserId(int userId);

    //根据管理员id权限查询
    List<Privilege> selectPrivilegeByUserId(int userId);
}
